package com.hzqy.persistence.dao.hotel;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.HotelCouponCodeVo;
import com.hzqy.web.vo.HotelCouponVo;
import com.hzqy.web.vo.MonthlyOperationAnalysisAataVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public class HotelYJFDao extends PersistenceDao<MonthlyOperationAnalysisAataVo, Integer> {
    protected final Logger LOG = LoggerFactory.getLogger(getClass());
    public int selectHotelYJFCount(MonthlyOperationAnalysisAataVo monthlyOperationAnalysisAataVo) {
        return getSqlSession().selectOne(this.getNamespace() + "selectHotelYJFCount", monthlyOperationAnalysisAataVo);
    }
    public List<MonthlyOperationAnalysisAataVo> selectHotelYJFList(Map<String, Object> map) {
        return getSqlSession().selectList(this.getNamespace() + "selectHotelYJFList", map);
    }

    public int insertYJF(MonthlyOperationAnalysisAataVo monthlyOperationAnalysisAataVo){
        return getSqlSession().insert(this.getNamespace() + "insertYJF", monthlyOperationAnalysisAataVo);
    }

    public int deleteYJF(MonthlyOperationAnalysisAataVo monthlyOperationAnalysisAataVo){
        return getSqlSession().delete(this.getNamespace() + "deleteYJF", monthlyOperationAnalysisAataVo);
    }
}
